package net.esj.basic.core.engine.util;

/**
 * 优先级接口
 * @author Administrator
 *
 */
public interface Priority {

	int HIGHEST_PRIORITY = Integer.MAX_VALUE;

	int LOWEST_PRIORITY = Integer.MIN_VALUE;
	
	/**
	 * 获得优先级
	 * @return
	 */
	int getPriority();
	
	/**
	 * 能否被另一个对象打断操作
	 * @param priority
	 * @return
	 */
	boolean canNotify(Priority priority);
}
